package 练习08_线程池并行返回结果;

/**
 * @ClassName: CompletionService01
 * @Author: AllenSun
 * @Date: 2023/2/28 下午6:27
 */
public class CompletionService01 {

    public String getUserInfo(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "获取用户信息";
    }

    public String getBannerInfo(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "获取菜单信息";
    }

    public String getLabelInfo(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "获取标签信息";
    }


}
